home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / sbin / ndiswrapper < prev    next >
Encoding:
Text File  |  2007-03-29  |  302 b   |  20 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. latest_ndiswrapper () {
  6.     for file in /usr/sbin/ndiswrapper-[\.0-9][\.0-9]*; do
  7.         echo $file
  8.     done | sort -n -t - -k 2 | tail -1
  9. }
  10.  
  11. unset LATEST
  12. LATEST=`latest_ndiswrapper`
  13.  
  14. if [ -x "$LATEST" ]; then
  15.     $LATEST "$@"
  16. else
  17.     echo "Error: no versions of ndiswrapper found!" 1>&2
  18.     exit 1
  19. fi
  20.